import redis.clients.jedis.Jedis;

public class TestMyRedis {
    public static void main(String[] args) {
        Jedis jedis = new Jedis("localhost",6379);
        jedis.auth("224224");
        System.out.println(jedis.ping());
        jedis.set("foo","bar");

        System.out.println(jedis.get("foo"));

    }
}
